import Vue from "vue";
import Router from "vue-router";
import Home from "./views/home/home.vue";

Vue.use(Router);

export default new Router({
  // mode: "history",
  routes: [
    {
      path: "/index",
      name: "home",
      component: Home
    },
    {
      path: "/notice",
      name: "notice",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "notice" */ "./views/notice/notice.vue")
    },
    {
      path: "/trade",
      name: "trade",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "trade" */ "./views/trade/trade.vue")
    },
    {
      path: "/buyin",
      name: "buyin",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "buyin" */ "./views/trade/buyin.vue")
    },
    {
      path: "/forget",
      name: "forget",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "forget" */ "./views/login/forget.vue")
    },
    {
      path: "/outcash",
      name: "outcash",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "outcash" */ "./views/trade/outcash.vue")
    },
    {
      path: "/extract",
      name: "extract",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "extract" */ "./views/trade/extract.vue")
    },
    {
      path: "/accounts",
      name: "accounts",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "accounts" */ "./views/trade/accounts.vue")
    },
    {
      path: "/sellout",
      name: "sellout",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "sellout" */ "./views/trade/sellout.vue")
    },
    {
      path: "/mine",
      name: "mine",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "mine" */ "./views/mine/mine.vue")
    },
    {
      path: "/record",
      name: "record",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "record" */ "./views/mine/record.vue")
    },
    {
      path: "/myteams",
      name: "myteams",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "myteams" */ "./views/mine/derailed.vue")
    },
    {
      path: "/mycode",
      name: "mycode",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "mine" */ "./views/mine/mycode.vue")
    },
    {
      path: "/",
      name: "login",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "login" */ "./views/login/login.vue")
    },
    {
      path: "/register",
      name: "register",
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () =>
        import(/* webpackChunkName: "forget" */ "./views/login/register.vue")
    },
  ]
});
